﻿<%@ Page Title="Venta Externa - Cotizaciones Realizadas" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmVentaExternaCotizacionesRealizadas.aspx.cs" Inherits="Crosland.Automotriz.Web.Vehiculos.wFrmVentaExternaCotizacionesRealizadas" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">


          <div class="main-header" style="width:100%;">
            <div class="main-titulo" style="text-align: left">Venta Externa - Datos de Tienda</div>
          </div> 

            <div style="padding: 10px">

          <table width="100%">
              <tr>
                  <td>
                      <table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                              <td width="115px">
                      <dx:ASPxButton ID="btnConsultar" runat="server" 
                          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                          CssPostfix="Office2010Blue" 
                          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                                      Width="100px" onclick="btnConsultar_Click">
                          <Image Url="~/Images/search.png">
                          </Image>
                      </dx:ASPxButton>
                              </td>
                              <td>
                                  <dx:ASPxButton ID="btnSalir" runat="server" 
                                      CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                      CssPostfix="Office2010Blue" onclick="btnSalir_Click" 
                                      SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                                      Width="100px">
                                      <Image Url="~/Images/logout.png">
                                      </Image>
                                  </dx:ASPxButton>
                              </td>
                          </tr>
                          <tr>
                              <td colspan="2">
                                  <hr />
                              </td>
                          </tr>
                      </table>
                  </td>
              </tr>
              <tr>
                  <td>
                      <table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                              <td style="width: 33px">
                      <asp:Label ID="Label1" runat="server" ForeColor="Black" Text="Año:"></asp:Label>
                              </td>
                              <td width="110">
                      <dx:ASPxComboBox ID="cboAño" runat="server" 
                          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                          CssPostfix="Office2010Blue" Spacing="0" 
                          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                          Width="100px">
                          <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                          </LoadingPanelImage>
                          <LoadingPanelStyle ImageSpacing="5px">
                          </LoadingPanelStyle>
                          <ButtonStyle Width="20px">
                          </ButtonStyle>
                          <Paddings PaddingLeft="5px" />
                      </dx:ASPxComboBox>
                              </td>
                              <td style="width: 31px">
                      <asp:Label ID="Label2" runat="server" ForeColor="Black" Text="Mes:"></asp:Label>
                              </td>
                              <td>
                      <dx:ASPxComboBox ID="cboMes" runat="server" 
                          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                          CssPostfix="Office2010Blue" Spacing="0" 
                          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                          SelectedIndex="0" Width="100px">
                          <Items>
                              <dx:ListEditItem Selected="True" Text="Enero" Value="1" />
                              <dx:ListEditItem Text="Febrero" Value="2" />
                              <dx:ListEditItem Text="Marzo" Value="3" />
                              <dx:ListEditItem Text="Abril" Value="4" />
                              <dx:ListEditItem Text="Mayo" Value="5" />
                              <dx:ListEditItem Text="Junio" Value="6" />
                              <dx:ListEditItem Text="Julio" Value="7" />
                              <dx:ListEditItem Text="Agosto" Value="8" />
                              <dx:ListEditItem Text="Setiembre" Value="9" />
                              <dx:ListEditItem Text="Octubre" Value="10" />
                              <dx:ListEditItem Text="Noviembre" Value="11" />
                              <dx:ListEditItem Text="Diciembre" Value="12" />
                          </Items>
                          <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                          </LoadingPanelImage>
                          <LoadingPanelStyle ImageSpacing="5px">
                          </LoadingPanelStyle>
                          <ButtonStyle Width="20px">
                          </ButtonStyle>
                          <Paddings PaddingLeft="5px" />
                      </dx:ASPxComboBox>
                              </td>
                              <td align="right">
                                  &nbsp;</td>
                          </tr>
                      </table>
                  </td>
              </tr>
              </table>

                <asp:GridView ID="gv" runat="server" BackColor="White" BorderColor="#CCCCCC" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="0" Width="550px">
                    <Columns>
                        <asp:BoundField DataField="DiaLetra" HeaderText="Dia">
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DiaNumero" HeaderText="Dia">
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Cotizaciones Realizadas">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkCotizaciones" runat="server" Font-Bold="True" 
                                    ForeColor="#336699" Text='<%# Bind("Cotizaciones") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Personas en Tienda">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkPersonas" runat="server" Font-Bold="True" 
                                    ForeColor="#336699" Text='<%# Bind("Personas") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#D1DFEF" BorderColor="#336699" BorderStyle="Solid" 
                        BorderWidth="1px" Font-Bold="True" Font-Names="Calibri" Font-Size="10pt" 
                        ForeColor="Black" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
                        Font-Names="Calibri" Font-Size="10pt" ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>

            </div>
</asp:Content>
